<style>
    .row{margin-bottom: 20px;}
    input[type="file"] {  position: absolute;  top: 0;  opacity: 0;  width: 100px;  height: 35px;  left: 15px;  }
    #allmap{width:100%;height:300px;}
    #allmap .anchorBL{display: none}
</style>
<section class="content">

    <div class="table-box">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>执业点</th>
                <th>封面图</th>
                <th>坐标</th>
                <th>累计预约次数</th>
                <th>执业医生</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="n in practiceList">
                <td>{{$index+1}}</td>
                <td>{{n.name}}</td>
                <td>
                    <img ng-src="{{basePictureUrl + n.picUrl}}" alt="" width="80px" height="50px" err-src="./img/img-cover.png">
                </td>
                <td>{{n.latitude}},{{n.longitude}}</td>
                <td>{{n.expertCount}}次</td>
                <td>{{n.doctorName}}</td>
                <td>
                    <span  ng-if="n.enable=='1'">
                        <a href="javascript:;" ng-click="changeEnable($event)" data-id="{{n.wecaId}}" data-status="{{n.enable}}">禁用</a> |
                        <span>启用</span>
                    </span>
                    <span  ng-if="n.enable=='0'">
                         <a href="javascript:;" ng-click="changeEnable($event)" data-id="{{n.wecaId}}" data-status="{{n.enable}}">启用</a> |
                        <span>禁用</span>
                    </span>
                </td>
            </tr>
            <tr ng-if="practiceList.length<=0">
                <td colspan="7" class="text-center">暂无数据</td>
            </tr>
            <tr>
                <td colspan="7" style="cursor: pointer" data-toggle="modal" data-target="#myModal1">✚ 新增执业地点</td>
            </tr>
            </tbody>
        </table>
        <div class="page-function" ng-if="practiceList.length>0">
        </div>
    </div>
    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel1">新增执业地点</h4>
                </div>
                <div class="modal-body">
                  <div class="row">
                      <div class="col-xs-2">名称</div>
                      <div class="col-xs-10">
                          <input type="text" class="form-control" name="addressName" >
                      </div>
                  </div>
                    <div class="row">
                        <div class="col-xs-2">坐标</div>
                        <div class="col-xs-10">
                            <input type="text" class="form-control" class="coordinate" name="coordinate">
                        </div>
                    </div>
                    <div class="row">
                        <div id="allmap"></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-2">封面</div>
                        <div class="col-xs-10">
                            <a href="javascript:;" class="btn btn-primary btn" role="button">上传封面图
                                　<input type="file" onchange="angular.element(this).scope().uploadImg(this,'img')">
                            </a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-offset-2 col-xs-10">
                            <img  class="imgCover" alt="" onerror="(this.src='./img/img-cover.png')" width="200px" height="150px">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-2">简介</div>
                        <div class="col-xs-10">
                            <div class="edit" edit></div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" ng-click="commitAddress()">确定</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</section>